﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Service
{

    /// <summary>
    /// 内部系统异常
    /// </summary>
    public sealed class InternalSystemException : Exception
    {
        public InternalSystemException(string message, object senderInstance, Exception innerException) : base(string.Concat(new string[]
        {
            "Internal system error: ",
            message,
            " (",
            (senderInstance != null) ? ("Class: " + senderInstance.GetType().FullName + ", ") : "",
            "Method: ",
            baseObject.GetStackMethodName(3),
            ")"
        }), innerException)
        {
        }
    }
}
